PPdesinger.prototype.allTypeItem ={   
		textfield:{
			i_id:"textfield",
			i_code:"i_code",
			i_type:"textfield",
			i_x:0,
			i_y:0,
			i_tabseq:0,					//tab顺序
			i_width:100,
			i_height:24,
			i_value:"",
			i_style:'{color:"#000",fontSize:"12px", fontWeight:"normal",fontFamily:"宋体"}',
			i_length:'20',
			i_desplaystyle:'方框',
			i_allowblank:"true",			//允许为空
			i_readonly:"false"
		},
		numberfield:{
			i_id:"numberfield1",
			i_code:"i_code",
			i_type:"numberfield",
			i_x:0,
			i_y:0,
			i_tabseq:0,
			i_width:100,
			i_height:24,
			i_value:'',
			i_style:'{color:"#000",fontSize:"12px", fontWeight:"normal",fontFamily:"宋体"}',
			i_length:'20',
			i_desplaystyle:'方框',
			i_allowblank:"false",			//允许为空
			i_readonly:"false",
			i_negative:'true',			//是否允许小数
			i_accuracy:'2'				//小数位数
		},
		label:{
			i_id:"label",
			i_type:"label",
			i_x:0,
			i_y:0,
			i_width:100,
			i_height:24,
			i_style:'{color:"000000",fontSize:"12px", fontWeight:"normal",fontFamily:"宋体"}',
			i_value:'新标签'
		},
		textarea:{
			i_id:"textarea1",
			i_code:"i_code",
			i_type:"textarea",
			i_x:0,
			i_y:0,
			i_width:200,
			i_height:80,
			i_value:"",
			i_length:'100',
			i_tabseq:0,
			i_style:'{color:"000000",fontSize:"12px", fontWeight:"normal",fontFamily:"宋体"}',
			i_allowblank:"true",			//允许为空
			i_readonly:"false"
			
		},
		liney:{
			i_id:'liney',
			i_type:'liney',
			i_x:0,
			i_y:0,
			i_style:'{borderColor:"#000"}',
			i_width:1,
			i_height:200
		},
		linex:{
			i_id:'linex',
			i_type:'linex',
			i_x:0,
			i_y:0,
			i_width:200,
			i_style:'{borderColor:"#000"}',
			i_height:1
		},
		imag:{
			i_id:'imag',
			i_type:'imag',
			i_x:0,
			i_y:0,
			i_width:50,
			i_height:50,
			src:'1.jpg'
		},
		datefield:{
			i_id:"datefield",
			i_code:"i_code",
			i_type:"datefield",
			i_x:0,
			i_y:0,
			i_value:"",
			i_width:100,
			i_height:24,
			i_style:'{color:"000000",fontSize:"12px", fontWeight:"normal",fontFamily:"宋体"}',
			i_allowblank:'true',
			i_readonly:"false"
		},
		background:{
			i_id:'background',
			i_type:'background',
			i_x:0,
			i_y:0,
			i_width:50,
			i_height:50,
			i_style:'{backgroundColor:""ffffbb"}'
		},
		htmleditor:{
			i_id:'htmleditor',
			i_type:'htmleditor',
			i_x:0,
			i_y:0,
			i_tabseq:0,
			i_width:240,
			i_height:240,
			i_readonly:"true",
			i_value:"",
			i_code:''
		},
		checkbox:{
			i_id:'checkbox',
			i_type:'checkbox',
			i_x:0,
			i_y:0,
			i_tabseq:0,
			i_code:'item1',
			i_width:150,
			i_style:'{color:"000000",fontSize:"12px", fontWeight:"normal",fontFamily:"宋体"}',
			i_height:50,
			i_readonly:"true",
			i_items:[
			         {columnWidth:.5, checked: false,boxLabel:'选项一',name:'item1'}
			         ,
			         {columnWidth:.5, checked: false,boxLabel:'选项二',name:'item1'}
				],
			i_value:""
		},
		radiobox:{
			i_id:'radiobox',
			i_type:'radiobox',
			i_x:0,
			i_y:0,
			i_code:'item1',
			i_tabseq:0,
			i_width:150,
			i_height:50,
			i_readonly:"true",
			i_style:'{color:"000000",fontSize:"12px", fontWeight:"normal",fontFamily:"宋体"}',
			i_items:[
			         {columnWidth:.5, checked: false,boxLabel:'选项一',name:'item1'}
			         ,
			         {columnWidth:.5, checked: false,boxLabel:'选项二',name:'item1'}
				],
			i_value:""
		},
		button:{
			i_id:'button',
			i_type:'button',
			i_x:0,
			i_y:0,
			i_width:80,
			i_height:30,
			i_text:'确定',
			i_function:""
		},select:{
			i_id:'select',
			i_type:'select',
			i_x:0,
			i_y:0,
			i_tabseq:0,
			i_code:'item1',
			i_style:'{color:"000000",fontSize:"12px", fontWeight:"normal",fontFamily:"宋体"}',
			i_width:100,
			i_height:24,
			i_readonly:"false",
			i_items:"[{boxLabel:\"选项一\",name:\"item1\"},{boxLabel:\"选项二\",name:\"item2\"}]",
			i_length:'100'
		}
};


PPdesinger.prototype.allItemProperty = {
	ch_en:{
		i_style:'样式',
		i_id:'id',
		代码:'i_code',
		i_type:'类型',
		x坐标:'i_x',
		y坐标:'i_y',
		宽度:'i_width',
		高度:'i_height',
		允许为空:'i_allowblank',
		是否只读:'i_readonly',
		值:'i_value',
		tab键顺序:'i_tabseq',
		数据长度:'i_length',
		显示样式:'i_desplaystyle',
		允许小数:'i_negative',
		小数位数:'i_accuracy',
		显示样式:'i_desplaystyle',
		图片名:'src',
		每行个数:"i_column",
		元素:'i_items',
		方法:'i_function',
		文字:'i_text'
	
	},
	en_ch:{
		样式:'i_style',
		i_id:'id',
		i_code:'代码',
		i_type:'类型',
		i_x:'x坐标',
		i_y:'y坐标',
		i_width:'宽度',
		i_height:'高度',
		i_allowblank:'允许为空',
		i_readonly:'是否只读',
		i_value:'值',
		i_tabseq:'tab键顺序',
		i_length:'数据长度',
		i_desplaystyle:'显示样式',
		i_negative:'允许小数',
		i_accuracy:'小数位数',
		i_desplaystyle:'显示样式',
		src:'图片名',
		i_column:'每行个数',
		i_items:'元素',
		i_function:"方法",
		i_text:"文字"
	},
	useType:{
		textfield:"ceateDivinput",
		numberfield:"ceateDivinput",
		textarea:"ceateDivtextarea",
		label:"selfCss",
		liney:'self',
		linex:"self",
		imag:'self',
		background:'selfColor',
		datefield:'inputDiv',
		select:'inputDiv',
		htmleditor:"textareaDiv",
		checkbox:"noId",
		radiobox:"noId",
		button:"button"
	}
};


PPdesinger.prototype.allToolbarFunction = {
		预览:{
			text :'<b style="font-size:10pt">预览</b>',
			handler:function() {				//方法在toolbar.js中
				//window.location.href = "localredisplay.html";
				moveobjectcfz.now_Object.LocalFormWindow("goto");
				
			}
		},
		新建:{
			text :'<b style="font-size:10pt">新建</b>',
			handler:function() {				//方法在toolbar.js中
				moveobjectcfz.now_Object.newFormWindow(moveobjectcfz.now_Object);
			}
		},
		上传:{
			text :'<b style="font-size:10pt">打开</b>',
			handler:function() {				//方法在toolbar.js中
				moveobjectcfz.now_Object.openFormWindow();
			}
		},
		下载:{						//功能未完成
			text :'<b style="font-size:10pt">下载</b>',
			handler:function() {				//方法在toolbar.js中
				moveobjectcfz.now_Object.openFormWindow();
			}
		},
		打开本地:{						//功能未完成
			text :'<b style="font-size:10pt">打开本地</b>',
			handler:function() {				//方法在toolbar.js中
				moveobjectcfz.now_Object.LocalFormWindow("open");
			}
		},
		另存本地:{						//功能未完成
			text :'<b style="font-size:10pt">另存本地</b>',
			handler:function() {				//方法在toolbar.js中
				moveobjectcfz.now_Object.LocalFormWindow("save");
			}
		},
		tbseparator:{
			xtype :'tbseparator'
		},
		保存:{
			text :'<b style="font-size:10pt">保存</b>',
			handler:function(){
				moveobjectcfz.now_Object.onlySaveForm();
			}
		},
		返回:{
			text :'<b style="font-size:10pt">返回</b>'
				//handler :goBack     //方法在toolbar.js中
		},
		插入表格:{
			width :40,
	    	text :'插入表格',
	    	listeners : {
				'click' :function(){
						moveobjectcfz.now_Object.inserttabel();
					}
			}
		},
		字体:{
			width :30,
			text :'字体',
			id:'ziti_id_',
			menu :new Ext.menu.Menu({
		        id:'fontFamily_toolbar',
		        items: [{
		                text: '宋体',
		                group: 'font',
		                checked: true,
		                xtype:'menucheckitem',
		                checkHandler: function(item, checked) 
		                {
		        			moveobjectcfz.now_Object.changeFontFamily('宋体');
		                }
		            },{
		                text: '黑体',
		                group: 'font',
		                xtype:'menucheckitem',
		                checkHandler: function(item, checked) 
		                {
		            		moveobjectcfz.now_Object.changeFontFamily('黑体');
		                }
		            },{
		                text: '楷体',
		                group: 'font',
		                xtype:'menucheckitem',
		                checkHandler: function(item, checked) 
		                {
		            		moveobjectcfz.now_Object.changeFontFamily('楷体');
		                }
		            },{
		                text: 'Arial',
		                group: 'font',
		                xtype:'menucheckitem',
		                checkHandler: function(item, checked) 
		                {
		            		moveobjectcfz.now_Object.changeFontFamily('Arial');
		                }
		            }
		        ]
		    })
		},
		颜色:{
			text:'颜色',
			width:30,
			id:'yanse_id_',
			menu:{
				xtype:'colormenu',
				handler : function(cm, color)
				{
			    	if (typeof color == 'string') 
			    	{
			    		moveobjectcfz.now_Object.changeColor(color,true);
			        }
		        }
			}
		},
		字形:{
			text:'字形',
			width:30,
			id:'zixing_id_',
			menu: new Ext.menu.Menu({
            items: [{
                    text: '粗体',
                    xtype:'menucheckitem',
                    id:'fontWeight_toolbar',
                    checkHandler: function(item, checked) 
                    {
                    	if(checked)
                    		moveobjectcfz.now_Object.changeFontB('bold');
                    	else 
                    		moveobjectcfz.now_Object.changeFontB('normal');
                    }
                }]
			})
		},
		字号:{
			
			width:50,
			xtype:"combo",
			emptyText:'字号',
			id:'fontSize_toolbar',
			store: new Ext.data.SimpleStore({
				fields:['value','text'],
				data:[
						['10px','10px'],
						['12px','12px'],['14px','14px'],['15px','15px'],['16px','16px'],['17px','17px'],
						['18px','18px'],['19px','19px'],['20px','20px'],['21px','21px'],['22px','22px'],
						['23px','23px'],['24px','24px'],['25px','25px'],['30px','30px']
					]
				}),
			valueField:'value',
			displayField:'text',
			mode:'local',
			triggerAction:'all',
			listeners:{'select':function(a,b,c)
			{
				moveobjectcfz.now_Object.changeFontSize(a.getValue());
			}}
		},
		标尺线:{
			width:40,
			text:'标尺线',
			listeners: {
	            'click': function(){
						moveobjectcfz.now_Object.show_biaochi_line();
					}
	        }
		}
		
		
};
PPdesinger.prototype.formcontextmenuItem = {
		全选:
		{
		text:'全选'
			//handler:deleteItems
		},
		黏贴:
		{
			text:"黏贴"
		}
};

PPdesinger.prototype.contextmenuItem = {
		删除:
		{
			text:'删除',
			handler:function(){moveobjectcfz.now_Object.deleteItem();}
		},
		左对齐:
		{
			text:'左对齐',
			id:'topAlign',
			handler:function(){moveobjectcfz.now_Object.acordLeft();}
		},
		下对齐:
		{
			text:'下对齐',
			id:'bottomAlign',
			handler:function(){moveobjectcfz.now_Object.acordButton();}
		},
		上对齐:
		{
			text:'上对齐',
			id:'leftAlign',
			handler:function(){moveobjectcfz.now_Object.acordTop();}
		},
		右对齐:
		{
			text:'右对齐',
			id:'rightAlign',
			handler:function(){moveobjectcfz.now_Object.acordRight();}
		},
		水平平均:
		{
			text:'水平平均',
			id:'HEvel',
			way:'left'
		//	handler:level_avg
		},
		垂直平均:
		{
			text:'垂直平均',
			id:'VEvel',
			way:'top'
		//	handler:level_avg
		},
		自动求和:{
			text:'自动求和',
			id:'auto_sum'
		//	handler:auto_sum
	}
};
